package fr.udata.server;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;

import fr.udata.client.service.UserService;
import fr.udata.server.dao.UserDao;
import fr.udata.shared.model.UserB;

@SuppressWarnings("serial")
public class UserServiceImpl extends RemoteServiceServlet implements
		UserService {

	@Override
	public UserB saveUser(UserB userB) throws IllegalArgumentException {
		return UserDao.getInstance().saveUser(userB);

	}

	@Override
	public UserB getUser(String email) throws IllegalArgumentException {
		return UserDao.getInstance().getUser(email);
	}

}
